//package com.construction_Safety.information.controller;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.construction_Safety.common.annotation.Log;
//import com.construction_Safety.common.core.controller.BaseController;
//import com.construction_Safety.common.core.domain.AjaxResult;
//import com.construction_Safety.common.enums.BusinessType;
//import com.construction_Safety.information.domain.CInspecAlbum;
//import com.construction_Safety.information.service.ICInspecAlbumService;
//import com.construction_Safety.common.utils.poi.ExcelUtil;
//import com.construction_Safety.common.core.page.TableDataInfo;
//
///**
// * 维修相册管理Controller
// *
// * @author yat
// * @date 2025-06-15
// */
//@RestController
//@RequestMapping("/CInspecAlbum/CInspecAlbum")
//public class CInspecAlbumController extends BaseController
//{
//    @Autowired
//    private ICInspecAlbumService cInspecAlbumService;
//
//    /**
//     * 查询维修相册管理列表
//     */
//    @PreAuthorize("@ss.hasPermi('CInspecAlbum:CInspecAlbum:list')")
//    @GetMapping("/list")
//    public TableDataInfo list(CInspecAlbum cInspecAlbum)
//    {
//        startPage();
//        List<CInspecAlbum> list = cInspecAlbumService.selectCInspecAlbumList();
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出维修相册管理列表
//     */
//    @PreAuthorize("@ss.hasPermi('CInspecAlbum:CInspecAlbum:export')")
//    @Log(title = "维修相册管理", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, CInspecAlbum cInspecAlbum)
//    {
//        List<CInspecAlbum> list = cInspecAlbumService.selectCInspecAlbumList();
//        ExcelUtil<CInspecAlbum> util = new ExcelUtil<CInspecAlbum>(CInspecAlbum.class);
//        util.exportExcel(response, list, "维修相册管理数据");
//    }
//
//    /**
//     * 获取维修相册管理详细信息
//     */
//    @PreAuthorize("@ss.hasPermi('CInspecAlbum:CInspecAlbum:query')")
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") Integer id)
//    {
//        return success(cInspecAlbumService.selectCInspecAlbumById(id));
//    }
//
//    /**
//     * 新增维修相册管理
//     */
//    @PreAuthorize("@ss.hasPermi('CInspecAlbum:CInspecAlbum:add')")
//    @Log(title = "维修相册管理", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody CInspecAlbum cInspecAlbum)
//    {
//        return toAjax(cInspecAlbumService.insertCInspecAlbum(cInspecAlbum));
//    }
//
//    /**
//     * 修改维修相册管理
//     */
//    @PreAuthorize("@ss.hasPermi('CInspecAlbum:CInspecAlbum:edit')")
//    @Log(title = "维修相册管理", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody CInspecAlbum cInspecAlbum)
//    {
//        return toAjax(cInspecAlbumService.updateCInspecAlbum(cInspecAlbum));
//    }
//
//    /**
//     * 删除维修相册管理
//     */
//    @PreAuthorize("@ss.hasPermi('CInspecAlbum:CInspecAlbum:remove')")
//    @Log(title = "维修相册管理", businessType = BusinessType.DELETE)
//	@DeleteMapping("/{ids}")
//    public AjaxResult remove(@PathVariable Integer[] ids)
//    {
//        return toAjax(cInspecAlbumService.deleteCInspecAlbumByIds(ids));
//    }
//}
